<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'job-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>


	<div class="row">
		<?php echo $form->labelEx($model,'job_title'); ?>
		<?php echo $form->textField($model,'job_title',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'job_title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'job_type'); ?>
		<?php echo $form->dropDownList($model,'job_type',  CHtml::listData(JobType::model()->findAll(), 'jtID', 'job_type'),array('empty'=>'Select Job Type')); ?>
		<?php echo $form->error($model,'job_type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'job_location'); ?>
		<?php echo $form->textField($model,'job_location',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'job_location'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'job_description'); ?>
		<?php $this->widget('application.extensions.tinymce.ETinyMce', 
			array(
				'name'=>'Job[job_description]',
				'options' => array(
				'height'=>'450px',
				'width'=>'550px',
				'theme_advanced_toolbar_location'=>'top', 
				'theme'=>'advanced',
				'theme_advanced_buttons1' => "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
		        'theme_advanced_buttons2' => "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		        'theme_advanced_buttons3' => "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		        'theme_advanced_buttons4' => "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage,ibrowser",
		        'theme_advanced_buttons3_add' => "pastetext,pasteword,selectall",
		        'theme_advanced_toolbar_location' => "top",
		        'theme_advanced_toolbar_align' => "left",
		        'theme_advanced_statusbar_location' => "bottom",
		        'theme_advanced_resizing' => true,
				'plugins' => "spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,ibrowser,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
			
				),
				'value'=>$model->job_description,
			 	'width'     =>  '500px',
				'htmlOptions'=>array('class'=>'mceEditor'),
				
			)); ?>
		<?php echo $form->error($model,'job_description'); ?>
	</div>

        <div class="row">
		<?php echo $form->labelEx($model,'enable'); ?>
		<?php echo $form->dropDownList($model,'enable', array('1'=>'Yes','0'=>'No')); ?>
		<?php echo $form->error($model,'enable'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->